package com.imageloader;

import android.content.Context;

import com.utils.PathUtils;

/**
 * @describe
 * @author: lixiaopeng
 * @Date: 2019-07-12
 */
public final class ImageLoaderUtils {

    public static String getStorageDirectory() {
        return PathUtils.getCacheDir();
    }

    public static String getDefaultDiskCachePath(Context context){
        StringBuilder builder = new StringBuilder();
        builder.append(getStorageDirectory());
        builder.append("/");
        builder.append(context.getPackageName());
        builder.append("/");
        builder.append("glideDisk");
        return builder.toString();
    }
}
